package com.tarena.charging.device.repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tarena.charging.device.mapper.PileMapper;
import com.tarena.charging.device.po.PilePO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class PileRepository {
    @Autowired
    private PileMapper pileMapper;
    public Integer getStationByPileId(Integer id) {
        return pileMapper.selectById(id).getStationId();
    }
}
